﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Windows.Controls;

namespace MiniChat
{
    public class CGlobalVariable
    {
        public static string HttpImageServer = "";
        public static string HttpServer = "";
        public static string FullName = "";
        public static string UserAvatar = "";
        public static string AppPath = Directory.GetCurrentDirectory();
        public static string ImagePath = Path.Combine(Directory.GetCurrentDirectory(), "temp", "useravatar");
        public static string UserName = "";
        public static Image imgUserAvatar ;
        public static TextBlock txtStatustext;
        public static TextBlock txtName;
        public static MyDb _db = new MyDb();
        public static ListBox lsbContacts;
        public static bool IsPin = false;
        public static bool IsDisconnected = false;
    }
    public class DownloadTask
    {
        public string url;
        public string username;
        public Task action;
    }
    public class ContactItem {
        public string ContactName{set;get;}
        public int ContastStatus { set; get; }
        public string ContactImage { set; get; }
        public string ContactFullName { set; get; }
        public string Localpath { set; get; }
    }
}
